training: Updated Validator Fundamentals courses#713
Conversation
|
A PR preview is available: Preview URL |
1 similar comment
|
A PR preview is available: Preview URL |
|
A PR preview is available: Preview URL |
|
A PR preview is available: Preview URL |
nrichers
left a comment
There was a problem hiding this comment.
Another great update to our training content, @validbeck! 👏 👏👏 I especially enjoyed reading through the challenger model section, nicely done!
Some random observations:
- I'd noticed that the UI for adding content block UI had changed and we needed to update our animated GIF and here you are, you've already done it. Thank you!
- The "Collaborate with others" section really needs to be more about governance & workflows — of which comments are a small part — but that's a future update.
It does up the runtime, because the validator notebooks have A LOT of code cells that need to be run, but I added a caching for the environment used to execute the notebooks so it at least cuts down on some of that.
We should perhaps consider paralleling the notebook execution rather than inlining it as one of the "Validate docs site" steps, and then syncing that to S3 after notebook execution. When I experimented with the Lighthouse checks, I ended up doing the same.
site/training/developer-fundamentals/using-validmind-for-model-development.qmd
Show resolved
Hide resolved
Yes, this was taken care of in #707.
I think for "fundamentals" this is sufficient — I know we are thinking of adding a governance course that covers more of the governance features more in depth. This course is already huge, so I vote that we build materials for that supplementary or related course instead here. Either way, it's out of the scope of this current initiative.
Great idea — can you start a Story for this since it looks like you have some suggestions/proven methods that work here? 🙏🏻 |
|
A PR preview is available: Preview URL |
|
A PR preview is available: Preview URL |
1 similar comment
|
A PR preview is available: Preview URL |
Internal Notes for Reviewers
Validator Fundamentals
REGISTRATION PAGE PREVIEW — 🚨 SEE COURSE MODULE PREVIEW DISCLAIMER BELOW!!!! 🚨
Course modules
🚨 NO LIVE PREVIEW 🚨 — AS THE IFRAME EMBEDS PULL FROM THE ROOT OF THE DOCS-DEMO FOLDER, YOU'LL NEED TO PULL DOWN THIS PR TO REVIEW & TEST THE TRAINING AS THE ONLINE HOSTED VERSION WON'T DRAW FROM THE CORRECT NOTEBOOK FILES:
gh pr checkout 713 cd site quarto previewNotebook execution
Important
I pulled in the latest notebook edits from validmind/validmind-library#370 branch as I needed the updated credentials information in the notebook as well. As a result, we'll want to revert the
notebooks/folder back tomainif we callmake get-sourceagain until that PR is out on a release tag.tests/andvalidmind/have been reverted tomainas to not prematurely update them.Proof that the development and validation execute notebooks both work even if the nested PR iframe can't display them properly:
Makefile
Adjusted the Makefile to simply copy over the
notebooks/tutorials/folder into anotebooks/EXECUTED/directory including themodel_validationcourses:documentation/site/Makefile
Line 173 in 29c1eb5
Also updated the backup
make executecommand:documentation/site/Makefile
Line 125 in 29c1eb5
Now, the command asks you for which profile you want, which set of notebooks you want executed (or a custom path), and then asks you for your credentials (as you need separate developer/validator credentials to execute each set of notebooks without errors) to create a temporary
.envfile:Warning
When you test this script, you may run into the following Lua warning:
This is just a warning, and doesn't actually affect the render of the executed notebooks. (Try it, you may see an error in the
.ipynbfile, but not in the live.htmloutput.)GitHub workflows
These have now been adjusted to accommodate for executing the validation notebooks alongside the development ones:
documentation/.github/workflows/validate-docs-site.yaml
Line 75 in 29c1eb5
documentation/.github/workflows/deploy-docs-staging.yaml
Line 54 in 29c1eb5
documentation/.github/workflows/deploy-docs-prod.yaml
Line 64 in 29c1eb5
documentation/.github/actions/demo-notebook/action.yml
Line 74 in 29c1eb5
documentation/.github/actions/staging-notebook/action.yml
Line 74 in 29c1eb5
documentation/.github/actions/prod-notebook/action.yml
Line 74 in 29c1eb5
How it works
Code samples from the PR preview/validate workflow, the functionality has been replicated across all workflows/actions:
PLATFORM_VALID_MODELfor the ValidMind Academy validation model..envfiles:dev.env.&valid.envfrom thePLATFORM_DEV_MODEL&PLATFORM_VALID_MODELrespectively:.envsare passed in as inputs into the composite action for executing the notebook:.envinputs:.envfile, temporarily copying it into an.env(without a prefix/filename format) so that the notebooks don't throw an.envnot found error:Note
It does up the runtime, because the validator notebooks have A LOT of code cells that need to be run, but I added a caching for the environment used to execute the notebooks so it at least cuts down on some of that. Example from
demo-notebook:documentation/.github/actions/demo-notebook/action.yml
Line 15 in ebfb095
Seeing as the filter is in place for PR previews (only execute when
site/notebooks/EXECUTED/is changed) and we push to staging/prod infrequently, I think this is an OK trade off until we replace the execution environment.Developer Fundamentals
REGISTRATION PAGE PREVIEW — 🚨 SEE COURSE MODULE PREVIEW DISCLAIMER ABOVE!!!! 🚨
I gave these another proofread/quality-check and edited some minor errors or screen real estate.
External Release Notes
ValidMind Academy
Validator Fundamentals
With the goal of delivering more approachable and comprehensive training, we've overhauled our Validator Fundamentals course into four modules with clear learning outcomes:
This training series walks you through the basics of using ValidMind to validate datasets and models, from running and logging tests with the ValidMind Library to finalizing your model's validation report in the ValidMind Platform. You'll learn how to use ValidMind to automate testing, populate evidence in your validation report, track finding resolution, and more — register to take the course now!